<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    table,th,td{
        border: 1px solid #c5c5c5;
        padding: 10px;
    }
</style>
<body>
<%- include('./header.ejs')%>
    <div>
        <h1>商品信息</h1>
        <table>
            <thead>
                <th>编号</th>
                <th>名字</th>
                <th>数量</th>
                <th>类型</th>
                <th>价格</th>
            </thead>
            <tbody>
            <% data.forEach(item=>{%>
            <tr>
                <td><%=item.g_id%></td>
                <td><%=item.g_name%></td>
                <td><%=item.g_num%></td>
                <td><%=item.g_type%></td>
                <td><%=item.g_money%></td>
            </tr>
            <% })%>
            </tbody>
        </table>
    </div>
</body>
</html>